import Vue from 'vue'
import Router from 'vue-router'
import Home from '@page/home/home'
import Index from '@page/index'
import Attendance from '@page/attendance/attendance'
import LineMap from  '@page/lineMap/lineMap'
Vue.use(Router)


const routes = [
  {
    path: '/',
    component: Home,
    redirect:"/Attendance",
    children:[
      {
        path: 'Attendance',
        component: Attendance,
        meta: [],
      },
      {
        path: 'LineMap',
        component: LineMap,
        meta: [],
      },
      
    ]
  },
  {
    path: '/test',
    component: Index,
  },
]

export default new Router({
  routes,
  strict: process.env.NODE_ENV !== 'production',
})
